home *** CD-ROM | disk | FTP | other *** search
/ Sky at Night 2007 June / SAN CD 6-2007 CD-ROM 25.iso / pc / Software / AstroGrav_Win / Java / jre1.6.0 / lib / rt.jar / sun / util / PreHashedMap$1$1.class (.txt) < prev    next >
Encoding:
Java Class File  |  2006-11-29  |  1.4 KB  |  70 lines

  1. package sun.util;
  2.  
  3. import java.util.Iterator;
  4. import java.util.NoSuchElementException;
  5.  
  6. final class PreHashedMap$1$1 implements Iterator<String> {
  7.    // $FF: renamed from: i int
  8.    private int field_0;
  9.    // $FF: renamed from: a java.lang.Object[]
  10.    Object[] field_1;
  11.    String cur;
  12.    // $FF: synthetic field
  13.    final PreHashedMap.1 this$1;
  14.  
  15.    PreHashedMap$1$1(PreHashedMap.1 var1) {
  16.       this.this$1 = var1;
  17.       this.field_0 = -1;
  18.       this.field_1 = null;
  19.       this.cur = null;
  20.    }
  21.  
  22.    private boolean findNext() {
  23.       if (this.field_1 != null) {
  24.          if (this.field_1.length == 3) {
  25.             this.field_1 = this.field_1[2];
  26.             this.cur = (String)this.field_1[0];
  27.             return true;
  28.          }
  29.  
  30.          ++this.field_0;
  31.          this.field_1 = null;
  32.       }
  33.  
  34.       this.cur = null;
  35.       if (this.field_0 >= PreHashedMap.access$100(this.this$1.this$0)) {
  36.          return false;
  37.       } else {
  38.          if (this.field_0 < 0 || PreHashedMap.access$200(this.this$1.this$0)[this.field_0] == null) {
  39.             do {
  40.                if (++this.field_0 >= PreHashedMap.access$100(this.this$1.this$0)) {
  41.                   return false;
  42.                }
  43.             } while(PreHashedMap.access$200(this.this$1.this$0)[this.field_0] == null);
  44.          }
  45.  
  46.          this.field_1 = PreHashedMap.access$200(this.this$1.this$0)[this.field_0];
  47.          this.cur = (String)this.field_1[0];
  48.          return true;
  49.       }
  50.    }
  51.  
  52.    public boolean hasNext() {
  53.       return this.cur != null ? true : this.findNext();
  54.    }
  55.  
  56.    public String next() {
  57.       if (this.cur == null && !this.findNext()) {
  58.          throw new NoSuchElementException();
  59.       } else {
  60.          String var1 = this.cur;
  61.          this.cur = null;
  62.          return var1;
  63.       }
  64.    }
  65.  
  66.    public void remove() {
  67.       throw new UnsupportedOperationException();
  68.    }
  69. }
  70.